package com.yohann.designPattern.adapter.classAdapter;

/**
 * <p>
 * 电源适配器
 * </p>
 *
 * @author Yohann
 * @since 2021/2/2 20:41
 */
public class VoltageAdapter extends Voltage220V implements Voltage5V {
    @Override
    public int output5V() {
        int source = output220V();

        //进行适配
        return source / 44;
    }
}